package org.example.myleet.p1020;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(3 == solution.numEnclaves(Parser.parse("[[0,0,0,0],[1,0,1,0],[0,1,1,0],[0,0,0,0]]")));
        Assert.isTrue(0 == solution.numEnclaves(Parser.parse("[[0,1,1,0],[0,0,1,0],[0,0,1,0],[0,0,0,0]]")));
        Assert.isTrue(0 == solution.numEnclaves(Parser.parse("[[0],[1],[1],[0],[0]]")));
        Assert.isTrue(7 == solution.numEnclaves(Parser.parse("[[0,0,1,1,1,0,1,1,1,0,1],[1,1,1,1,0,1,0,1,1,0,0],[0,1,0,1,1,0,0,0,0,1,0],[1,0,1,1,1,1,1,0,0,0,1],[0,0,1,0,1,1,0,0,1,0,0],[1,0,0,1,1,1,0,0,0,1,1],[0,1,0,1,1,0,0,0,1,0,0],[0,1,1,0,1,0,1,1,1,0,0],[1,1,0,1,1,1,0,0,0,0,0],[1,0,1,1,0,0,0,1,0,0,1]]")));
    }
}
